package com.yiren.backstage.currency.entity.record;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Describe 项目评分实体类
 *
 * @author WRX
 * @date 2022/7/25
 */
@Entity
public class ProjectGradeEntity {

    @Id(autoincrement = true)
    private Long id;

    /*** 外键 */
    private Long projectId;

    /*** 扣分原因 */
    private String cause;

    /*** 所扣分数 */
    private int grade;

    /*** 扣分时间 */
    private long time;

    @Generated(hash = 457842644)
    public ProjectGradeEntity(Long id, Long projectId, String cause, int grade,
            long time) {
        this.id = id;
        this.projectId = projectId;
        this.cause = cause;
        this.grade = grade;
        this.time = time;
    }

    @Generated(hash = 1579411759)
    public ProjectGradeEntity() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return this.projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getCause() {
        return this.cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public int getGrade() {
        return this.grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public long getTime() {
        return this.time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
